#include <iostream>
#include <string>
#include "iniReader.hpp"
using namespace std;

int main()
{
    IniReader config;
    config.ReadConfig("cfg.ini");

    string test1 = config.ReadString("config", "test1");
    int test3 = config.ReadInt("config", "test3", 0);
    string test2 = config.ReadString("config", "test2");

    cout << "test1=" << test1 << endl;
    cout << "test3=" << test3 << endl;
    cout << "test2=" << test2 << endl;

    string test4 = config.ReadString("ipaddress", "ip");
    cout << "ip=" << test4 << endl;

    string icon = config.ReadString("config", "icon");
    cout << "icon=" << icon << endl;

    return 0;
}